﻿package com.bizmlib.ui.display
{
	import flash.events.MouseEvent;
	import flash.display.InteractiveObject;
	
	
	public class MouseEventExtended extends MouseEvent
	{
		public static const MOUSE_RELEASE:String = "mouseRelease";
		
		
		public function MouseEventExtended(type:String, bubbles:Boolean = true, cancelable:Boolean = false, localX:Number = 0, localY:Number = 0,
		relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0)
		{
			super(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
		}
		
		
		public static function createFromSource(event:MouseEvent, type:String = undefined):MouseEventExtended
		{
			return new MouseEventExtended(type || event.type, event.bubbles, event.cancelable, event.localX, event.localY, event.relatedObject, event.ctrlKey, event.altKey,
				event.shiftKey, event.buttonDown, event.delta);
		}
	}
}